package cn.zxcoder.entity.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;

/**
 * <p>
 *
 * </p>
 *
 * @author zx
 * @since 2023-05-21
 */
@Data
@TableName("repertory")
@ApiModel(value = "Repertory对象", description = "库存管理")
public class Repertory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("产品名称")
    private String name;


    @TableField(value = "inventory_sum")
    @ApiModelProperty("历史入库总量")
    private Integer inventorySum;

    @ApiModelProperty("库存值")
    private Integer inventory;
    @TableField(value = "inventory_remove")
    @ApiModelProperty("出库总值")
    private Integer inventoryRemove;

    @ApiModelProperty("单位")
    private Integer unit;

    @ApiModelProperty("库房地址多个存储用 ，号隔开如： 库房，位置，位置编号")
    private String location;

    @ApiModelProperty("1告警0是正常")
    private Integer alarm;

    @ApiModelProperty("物件编号")
    private String code;

    @TableField(value = "alarm_value")
    @ApiModelProperty("警告值 库存值低于警告值告警提示")
    private Integer alarmValue;

    @ApiModelProperty("型号")
    private String type;

    @ApiModelProperty("产品图片地址")
    private String img;

    @TableField(value = "status_code")
    @ApiModelProperty("状态 1开启，0删除")
    private Integer statusCode;

    @ApiModelProperty("创建用户")
    private String addUser;

    @ApiModelProperty("创建时间")
    private Date addTime;

    @ApiModelProperty("更新人")
    private String editUser;

    @ApiModelProperty("更新时间")
    private Date editTime;

    @ApiModelProperty("条形码地址")
    private String imgUrl;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getInventorySum() {
        return inventorySum;
    }

    public void setInventorySum(Integer inventorySum) {
        this.inventorySum = inventorySum;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Integer getInventoryRemove() {
        return inventoryRemove;
    }

    public void setInventoryRemove(Integer inventoryRemove) {
        this.inventoryRemove = inventoryRemove;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public String getlocation() {
        return location;
    }

    public void setlocation(String location) {
        this.location = location;
    }

    public Integer getAlarm() {
        return alarm;
    }

    public void setAlarm(Integer alarm) {
        this.alarm = alarm;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(Integer alarmValue) {
        this.alarmValue = alarmValue;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getaddUser() {
        return addUser;
    }

    public void setaddUser(String addUser) {
        this.addUser = addUser;
    }

    public Date getaddTime() {
        return addTime;
    }

    public void setaddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String geteditUser() {
        return editUser;
    }

    public void seteditUser(String editUser) {
        this.editUser = editUser;
    }

    public Date geteditTime() {
        return editTime;
    }

    public void seteditTime(Date editTime) {
        this.editTime = editTime;
    }

    @Override
    public String toString() {
        return "Repertory{" +
                "id=" + id +
                ", name=" + name +
                ", inventorySum=" + inventorySum +
                ", inventory=" + inventory +
                ", inventoryRemove=" + inventoryRemove +
                ", unit=" + unit +
                ", location=" + location +
                ", alarm=" + alarm +
                ", code=" + code +
                ", alarmValue=" + alarmValue +
                ", type=" + type +
                ", img=" + img +
                ", statusCode=" + statusCode +
                ", addUser=" + addUser +
                ", addTime=" + addTime +
                ", editUser=" + editUser +
                ", editTime=" + editTime +
                "}";
    }
}
